import service from './request'

// 上传图片
export const uploadImage = (file: File) => {
  const formData = new FormData()
  formData.append('file', file)
  
  return service.post('/component/uploadImage', formData, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}